﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ThongTin.aspx.cs" Inherits="ThongTin" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .title
        {
            font-weight: 700;
            font-size: xx-large;
            color: #FF0066;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    
<div class="title" align="center">Quản trị Thông tin ATM</div>
    <div>
     <asp:Panel ID="pnShow" Width="100%" runat="server">
        <table id="table" style="border-collapse:collapse;background-color:#000EF0;">
            <tr>
                <td>
                    <asp:Button ID="btnThem" runat="server" CssClass="btnThem" Text="Thêm Mới" onclick="btnThem_Click" 
                        />
                </td>
            </tr>
        </table>
  
        <asp:DataGrid ID="grdthongtinatm" runat="server" AllowPaging="True" 
            AutoGenerateColumns="False" CellPadding="4" ForeColor="#033333" 
            Width="100%" onitemcommand="grdthongtinatm_ItemCommand" 
             onpageindexchanged="grdthongtinatm_PageIndexChanged"  >
            <AlternatingItemStyle BackColor="White" />
            <HeaderStyle CssClass="trHeader" />
            <Columns>
                <asp:BoundColumn DataField="MaATM" HeaderText="Mã ATM"></asp:BoundColumn>
                <asp:BoundColumn DataField="MaKhuVuc" HeaderText="Mã Khu vực"></asp:BoundColumn>
                <asp:BoundColumn DataField="TenmayATM" HeaderText="Tên Máy ATM"></asp:BoundColumn>
                <asp:BoundColumn DataField="Diachi" HeaderText="Địa chỉ"></asp:BoundColumn>
                <asp:BoundColumn DataField="Latitude" HeaderText="Latitude"></asp:BoundColumn>
                <asp:BoundColumn DataField="Longtitude" HeaderText="Longtitude"></asp:BoundColumn>
                <asp:BoundColumn DataField="ThongTin" HeaderText="Thông Tin"></asp:BoundColumn>
            
                <asp:TemplateColumn HeaderText="Chức năng">
                    <ItemTemplate>
                       <asp:LinkButton ID="lbtedit" runat="server" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"MaKhuVuc")%>' CommandName="Edit" CssClass="edit" ToolTip="Sửa">Edit</asp:LinkButton>
                        <asp:LinkButton ID="lbtdelete" runat="server" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"MaKhuVuc")%>' CommandName="Delete" CssClass="delete" ToolTip="xóa" OnClientClick="return cofirm(Bạn có chắc muốn xóa không?)">Delete</asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateColumn>
            </Columns>
            <EditItemStyle BackColor="#2461BF" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <ItemStyle BackColor="#EFF3FB" />
            <PagerStyle BackColor="#F3F8FE" Font-Bold="true" ForeColor="Blue" HorizontalAlign="Center" Mode="NumericPages" />
            <SelectedItemStyle BackColor="#D1D0F1" Font-Bold="true" ForeColor="#33333" />
        </asp:DataGrid>
    </asp:Panel>
    <asp:Panel ID="pnUpdateCtSp" runat="server">
        <table id="Table2" style="border-collapse:collapse;" cellpadding="0" width="100%" border="0">
            <tr>
                <td width="150" class="name_fild_row">
                    <div><asp:Label ID="Label1" Text="Mã Khu Vực" runat="server" /></div>

                </td>
                <td class="row">
                    <asp:DropDownList ID="drdlMakhuvuc" runat="server"  />
                     
                </td>
            </tr>
             <tr>
                <td width="150" class="name_fild_row">
                    <div><asp:Label ID="Label3" Text="Mã ATM" runat="server" /></div>

                </td>
                <td class="row">
                    <asp:TextBox ID="txtMaATM" runat="server" />
                </td>
            </tr>
            <tr>
                <td width="150" class="name_fild_row">
                    <div><asp:Label ID="Label2" Text="Tên máy ATM:" runat="server" /></div>

                </td>
                <td class="row">
                    <asp:TextBox ID="txttenmay" runat="server" />
                </td>
            </tr>
            <tr>
                <td width="150" class="name_fild_row">
                    <div><asp:Label ID="Label8" Text="Địa chỉ:" runat="server" /></div>

                </td>
                <td class="row">
                    <asp:TextBox ID="txtdiachi" runat="server" />
                </td>
            </tr>
             <tr>
                <td width="150" class="name_fild_row">
                    <div><asp:Label ID="Label5" Text="Latitude:" runat="server" /></div>

                </td>
                <td class="row">
                    <asp:TextBox ID="txtlat" runat="server" />
                </td>
            </tr>
            <tr>
                <td width="150" class="name_fild_row">
                    <div><asp:Label ID="Label18" Text="Longtitude:" runat="server" /></div>

                </td>
                <td class="row">
                    <asp:TextBox ID="txtlong" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="name_fild_row" width="150">
                    <asp:Label ID="Label19" runat="server" Text="Thông tin"></asp:Label>
                </td>
                <td class="row">
                    <asp:TextBox ID="txtthongtin" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="name_fild_row" width="150">
                    <asp:Label ID="Label20" runat="server" Text="Kích hoạt"></asp:Label>
                </td>
                <td class="row">
                    <asp:TextBox ID="txtkichhoat" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td width="150" class="name_fild_row">
                    
                </td>
                <td class="row">
                    <asp:LinkButton ID="lbtUpdate" CssClass="update" runat="server" onclick="lbtUpdate_Click"  
                        >Cập nhập</asp:LinkButton>
                    &nbsp;&nbsp;&nbsp;
               <input id="bt_cancel" type="button" 
                                        onclick="history.back()" value="Trở lại"/>
                </td>
            </tr>
        </table>
    </asp:Panel>
    
    </div>
    </form>
</body>
</html>
